import string
import urllib.request
from urllib.parse import quote
from bs4 import BeautifulSoup

url='https://sou.zhaopin.com/?jl=801&kw=java&p=1'
url=quote(url, safe=string.printable) # 转义
resp=urllib.request.urlopen(url)# 打开
#print(resp.content.decode('utf-8'))
content=resp.read().decode("utf-8")
soup=BeautifulSoup(content,'lxml')
Joblist=soup.select(".joblist-box__item")
job_list=[]
for job in Joblist:
    job_dic={}
    job_name=job.select(".jobinfo__name")[0].getText()




